home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Format CD 22
/
Amiga Format AFCD22 (Jan 1998, Issue 106).iso
/
-seriously_amiga-
/
shareware
/
archivers
/
xfx
/
arexx
/
test.rexx
< prev
next >
Wrap
OS/2 REXX Batch file
|
1997-11-05
|
910b
|
45 lines
/*
**************************
**** xFX ARexx script ****
**************************
ARexx command tester for xFX
*/
if ~show('P','xFX.1') then do /* Check if xFX is running */
say 'xFX not running !'
exit
end
address 'xFX.1'
options prompt 'xFX> '
options results
say 'Type QUIT to exit.'
GoLabel:
signal on Error
signal on Syntax
do forever
parse pull command /* get a command from the user */
drop rc /* clear out previous return code */
drop result /* clear out previous result */
interpret command /* execute the command */
if upper(command) = 'QUIT' then exit
say result
end
Error:
Syntax:
say 'ERROR:'
say ' ARexx return code..' rc
say ' ARexx message......' '"'errortext(rc)'"'
say ' xFX message........' '"'xFX.LASTERROR'"'
signal GoLabel